﻿/*
 * Copyright © 2020, Wuxi Safover Intelligent Technology Co., Ltd. All rights reserved.
 * 
 * 无锡安永智能科技有限公司版权所有，未经许可，不得用于商业用途
 * 
 * Visit: https://www.safover.com/ 
 */

using Safover.LidarCollector.Config;

namespace Safover.LidarCollector.ViewModel
{
    public class HardwareConfigViewModel : BeseViewModel
    {
        public static HardwareConfigViewModel Instance = new HardwareConfigViewModel();

        HardwareConfigViewModel()
        {
            OpticalMaserConfigViewModel = new OpticalMaserConfigViewModel(RuntimeConfigManager.Instance.OpticalMaserConfig);

            PowerBoardConfigViewModel = new PowerBoardConfigViewModel(RuntimeConfigManager.Instance.PowerBoardConfig);

            AcquisitionCardConfigViewModel = new AcquisitionCardConfigViewModel(RuntimeConfigManager.Instance.AcquisitionCardConfig);

            RotaryTableConfigViewModel = new RotaryTableConfigViewModel(RuntimeConfigManager.Instance.RotaryTableConfig);

            ElectronicCompassConfigViewModel = new ElectronicCompassConfigViewModel(RuntimeConfigManager.Instance.ElectronicCompassConfig);

            GPSConfigViewModel = new GPSConfigViewModel(RuntimeConfigManager.Instance.GPSConfig);
        }

        public OpticalMaserConfigViewModel OpticalMaserConfigViewModel { get; set; }

        public PowerBoardConfigViewModel PowerBoardConfigViewModel { get; set; }

        public AcquisitionCardConfigViewModel AcquisitionCardConfigViewModel { get; set; }

        public RotaryTableConfigViewModel RotaryTableConfigViewModel { get; set; }

        public ElectronicCompassConfigViewModel ElectronicCompassConfigViewModel { get; set; }

        public GPSConfigViewModel GPSConfigViewModel { get; set; }

    }
}
